-- CALC_SKY_FIGHTER_FIGHT_ABILITY
-- 战队的战力

return function(fighter)
    local fight_ability = fighter.dbase:query("fight_ability", 0);

    -- 战力+N
    local prop = PropM.combine(fighter, "attrib2", "fight_ability");
    fight_ability = PropM.apply(prop, fight_ability);

    fight_ability = fight_ability + SkyShipSkillM.calcAddon(fighter, "fight_ability", fight_ability);

    fight_ability = fight_ability + SkyPropM.calcAddon(fighter, "fight_ability", fight_ability);

    -- 战力+N（不参与前面的整体提升）
    prop = PropM.combine(fighter, "add_attrib", "fight_ability");
    fight_ability = PropM.apply(prop, fight_ability);

    -- 降低战力N
    prop = PropM.combine(fighter, "ship_reduce_attrib", "fight_ability");
    fight_ability = PropM.apply(prop, fight_ability);

    if fight_ability < 0 then
        fight_ability = 0;
    end

    return fight_ability;
end
